/*
 * hostinfo.h
 *
 *  Created on: Oct 8, 2012
 *      Author: mark
 */

#ifndef HOSTINFO_H_
#define HOSTINFO_H_

#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#include <ifaddrs.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

class HostInfo
{
public:
	static in_addr_t GetLocalIPAddress(const char *interface);

	static char *IPAddressToChar(const in_addr_t ipAddress);
	static in_addr_t CharToIPAddress(const char *ipAddress);
};

#endif /* HOSTINFO_H_ */
